home *** CD-ROM | disk | FTP | other *** search
/ ASME's Mechanical Engine…ing Toolkit 1997 December / ASME's Mechanical Engineering Toolkit 1997 December.iso / c_lang / varinc.lzh / PAGE54.C < prev    next >
Text File  |  1979-11-30  |  140b  |  8 lines

  1. if (curr_val > max_val)
  2.    {
  3.    max_val = curr_val;
  4.    total += curr_val;
  5.    }
  6. else if (curr_val < min_val)
  7.    small_tot += min_val;
  8.